package com.pointstar.dp.modules.project.service;

import com.pointstar.dp.common.entity.Page;
import com.pointstar.dp.common.entity.R;
import com.pointstar.dp.modules.project.entity.InBoundEntity;
import com.pointstar.dp.modules.project.entity.ro.SaveInBoundRo;

import java.util.Map;

/**
 * 入库主表
 * @author Korey<m13057531285@163.com>
 */
public interface InBoundService {

    /**
     * 分页查询
     * @param params
     * @return
     */
	Page<InBoundEntity> listInBound(Map<String, Object> params);

    /**
     * 新增
     * @param inBound
     * @return
     */
	R saveInBound(InBoundEntity inBound);

    /**
     * 商品入库
     *
     * @param saveInBoundRo
     * @return
     */
    R saveInBoundAndDetails(SaveInBoundRo saveInBoundRo);

    /**
     * 根据id查询
     * @param id
     * @return
     */
	R getInBoundById(Long id);

    /**
     * 修改
     * @param inBound
     * @return
     */
	R updateInBound(InBoundEntity inBound);

    /**
     * 删除
     * @param id
     * @return
     */
	R batchRemove(Long[] id);

	//更新删除标志和插入负记录
    R batchRemoveLogic(Long[] id);
	
}
